class UserTask {
  List<Content>? content;
  int? pageNum;
  int? pageSize;
  int? totalPages;
  int? totalSize;

  UserTask({
    this.content,
    this.pageNum,
    this.pageSize,
    this.totalPages,
    this.totalSize,
  });

  UserTask.fromJson(dynamic json) {
    if (json['content'] != null) {
      content = [];
      json['content'].forEach((v) {
        content?.add(Content.fromJson(v));
      });
    }
    pageNum = json['pageNum'];
    pageSize = json['pageSize'];
    totalPages = json['totalPages'];
    totalSize = json['totalSize'];
  }

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (content != null) {
      map['content'] = content?.map((v) => v.toJson()).toList();
    }
    map['pageNum'] = pageNum;
    map['pageSize'] = pageSize;
    map['totalPages'] = totalPages;
    map['totalSize'] = totalSize;
    return map;
  }
}

class Content {
  Content({
    this.collectCount,
    this.commonSet,
    this.endTime,
    this.questionId,
    this.startTime,
    this.status,
    this.taskId,
    this.taskName,
    this.updateTime,
    this.writeCount,
  });

  Content.fromJson(dynamic json) {
    collectCount = json['collectCount'];
    commonSet = json['commonSet'];
    endTime = json['endTime'];
    questionId = json['questionId'];
    startTime = json['startTime'];
    status = json['status'];
    taskId = json['taskId'];
    taskName = json['taskName'];
    updateTime = json['updateTime'];
    writeCount = json['writeCount'];
  }

  int? collectCount;
  String? commonSet;
  String? endTime;
  String? questionId;
  String? startTime;
  String? status;
  String? taskId;
  String? taskName;
  String? updateTime;
  int? writeCount;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['collectCount'] = collectCount;
    map['commonSet'] = commonSet;
    map['endTime'] = endTime;
    map['questionId'] = questionId;
    map['startTime'] = startTime;
    map['status'] = status;
    map['taskId'] = taskId;
    map['taskName'] = taskName;
    map['updateTime'] = updateTime;
    map['writeCount'] = writeCount;
    return map;
  }
}
